let obj1 = {a:1, b:2};
let obj2 = {b:3, c:4};
obj1 = {...obj1, ...obj2};
console.log(obj1); 